#include "separated_adaboost.h"

void separated_adaboost::initialize_distribution(double * d, double * y, int l) {
	for(int i = 0; i < l; i++) {
		d[i] = 0.5;
	}
}

void separated_adaboost::update_distribution(double alpha, double * y, double * p, int l, double * d_t, double * d_t1) {
	for(int i = 0; i < l; i ++) {
		if(y[i] == 1) {
			d_t1[i] = 1 - p[i];
		} else {
			d_t1[i] = p[i];
		}
	}
}

string separated_adaboost::get_type() {
	return "separated_adaboost";
}
